<?php
class ConfiguredDesign extends ObjectModel 
{
    public $id;
    public $id_project;
    public $namespace;
    public $key_name;
    
    public static $definition = array(
        'table' => 'pt_configured_design',
        'primary' => 'id_design',
        'fields' => array(
            'id_project' => array(
                'type' => ObjectModel::TYPE_INT,
                'required' => true, 
                'validate' => 'isUnsignedId'
            ),
            'namespace' => array(
                'type' => ObjectModel::TYPE_STRING,
                'required' => true,
                'validate' => 'isName',
                'size' => 256,
            ),
            'key_name' => array(
                'type' => ObjectModel::TYPE_STRING,
                'required' => true,
                'validate' => 'isName',
                'size' => 64,
            )
        )
    );
}